package a.e;

import javax.swing.*;
import java.io.*;

class d
  extends ObjectInputStream
{
  private static final String a = "javax.swing.ImageIcon";
  private Long c;
  static Class d;
  static Class e;
  
  d(InputStream paramInputStream)
    throws IOException
  {
    super(paramInputStream);
    enableResolveObject(true);
  }
  
  protected Object resolveObject(Object paramObject)
    throws IOException
  {
    int i = e.b;
    if (i == 0)
    {
      if ((paramObject instanceof a.k.a.a)) {
        return ((a.k.a.a)paramObject).a();
      }
      if (i != 0) {}
    }
    else if ((paramObject instanceof a.k.b.a))
    {
      return ((a.k.b.a)paramObject).a();
    }
    return super.resolveObject(paramObject);
  }
  
  protected Class resolveClass(ObjectStreamClass paramObjectStreamClass)
    throws IOException, ClassNotFoundException
  {
    int i = e.b;
    if ("javax.swing.ImageIcon".equals(paramObjectStreamClass.getName()))
    {
      if (i == 0) {
        if (this.c == null) {
          this.c = a();
        }
      }
      if ((i != 0) || (this.c == null)) {
        return super.resolveClass(paramObjectStreamClass);
      }
      long l = paramObjectStreamClass.getSerialVersionUID();
      if (i == 0) {
        if (this.c.longValue() == l) {
          return super.resolveClass(paramObjectStreamClass);
        }
      }
      if (i == 0) {
        if (532615968316031794L == l)
        {
          if (i == 0) {}
          return d == null ? (d.d = a("a.k.a.a")) : d;
        }
      }
      if (-962022720109015502L == l)
      {
        if (i == 0) {}
        return e == null ? (d.e = a("a.k.b.a")) : e;
      }
      return super.resolveClass(paramObjectStreamClass);
    }
    return super.resolveClass(paramObjectStreamClass);
  }
  
  private static Long a()
  {
    try
    {
      return b();
    }
    catch (ClassNotFoundException localClassNotFoundException) {}catch (IOException localIOException) {}
    return null;
  }
  
  private static Long b()
    throws ClassNotFoundException, IOException
  {
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    ObjectOutputStream localObjectOutputStream = new ObjectOutputStream(localByteArrayOutputStream);
    try
    {
      localObjectOutputStream.writeObject(new ImageIcon());
      localObjectOutputStream.flush();
    }
    finally
    {
      localObjectOutputStream.close();
    }
    a_ locala_ = new a_(new ByteArrayInputStream(localByteArrayOutputStream.toByteArray()));
    try
    {
      locala_.readObject();
    }
    finally
    {
      locala_.close();
    }
    return locala_.a();
  }
  
  static Class a(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  private static final class a_
    extends ObjectInputStream
  {
    private Long a;
    
    a_(InputStream paramInputStream)
      throws IOException
    {
      super();
    }
    
    protected Class resolveClass(ObjectStreamClass paramObjectStreamClass)
      throws IOException, ClassNotFoundException
    {
      if ("javax.swing.ImageIcon".equals(paramObjectStreamClass.getName())) {
        this.a = new Long(paramObjectStreamClass.getSerialVersionUID());
      }
      return super.resolveClass(paramObjectStreamClass);
    }
    
    Long a()
    {
      return this.a;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.d

 * JD-Core Version:    0.7.0.1

 */